package com.java1412.user.service.impl;

import com.java1412.common.entity.User;
import com.java1412.user.mapper.UserMapper;
import com.java1412.user.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2023-06-08 10:31:11
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User findById(Integer id) {
        return userMapper.findById(id);
    }
}
